/*
 * master_service.h
 *
 *  Created on: Jan 5, 2013
 *      Author: redchen
 */

#ifndef MASTER_SERVICE_H_
#define MASTER_SERVICE_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <lfs.h>
#include <map.h>
#include <list.h>
#include <rpc.h>

typedef void(*HandlerFunc)(void* inout, void* output);

void master_service_init();

void master_service_request(Request* req, Response* resp);

void master_service_file_meta(void* input, void* output);

void master_service_file_create(void* input, void* output);

void master_service_file_delete(void* input, void* output);

void master_service_file_write(void* input, void* output);

void master_service_file_meta_update(void* input, void* output);

void master_service_no_method(void* input, void* output);

#ifdef __cplusplus
}
#endif


#endif /* MASTER_HANDLER_H_ */
